<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <!--移动端的预览-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--引入semantic资源-->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <!--引入内容排版的css-->
    <link rel="stylesheet" href="../static/css/typo.css" th:href="@{/css/typo.css}">
    <!--动画效果的css-->
    <link rel="stylesheet" href="../static/css/animate.css" th:href="@{/css/animate.css}">
    <!--引入代码高亮展示css-->
    <link rel="stylesheet" href="../static/lib/prism/prism.css" th:href="@{/lib/prism/prism.css}">
    <!--引入目录生成tocbot的css-->
    <link rel="stylesheet" href="../static/lib/tocbot/tocbot.css" th:href="@{/lib/tocbot/tocbot.css}">
    <!--引入自定义css-->
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <title>搜索结果</title>
</head>
<body>
<!--导航-->
<nav th:replace="_fragments :: menu(0)" class="ui inverted attached segment m-padded-tb-mini">
    <div class="ui container">
        <!--stackable 可堆叠，适应移动端-->
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">Blog</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i>分页</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
            <div class="right m-item item m-mobile-hide">
                <!--搜索框-->
                <div class="ui icon inverted transparent input">
                    <input type="text" placeholder="Search...">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--中间内容-->
    <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <!--header-->
            <div class="ui top attached segment">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <h3 class="ui teal header">搜索结果</h3>
                    </div>
                    <div class="right aligned column">
                        共 <h3 class="ui orange header m-inline-block m-text-thin"> 11 </h3> 个
                    </div>
                </div>
            </div>
            <!--文章列表-->
            <div class="ui top attached teal segment">
                <!--文章列表-->
                <div class="ui padded vertical segment m-padded-tb-large" th:each="blog : ${page.content}">
                    <div class="ui middle aligned mobile reversed stackable grid">
                        <!--文章内容--><!--11+5-->
                        <div class="ui eleven wide column"><!--标题-->
                            <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">J2EE企业级应用架构的发展(认识)</a></h3>
                            <!--博客描述 对应 description-->
                            <p class="m-text" th:text="|${blog.description}......|">
                                在扎实了Java基础后，在深入学习JavaWeb的过程中，会遇到各种问题，能够清晰认识Web的基础架构和模块功能的分布，会帮助你深入理解你的Web项目，搞清楚自己在开发或者调整的是哪一个模块，不至于盲目完成功能。在认知整体结构，思路清晰的基础上再进行开发，也会锻炼你预估成本、侧重性能、合理分配资源的大局观。......</p>
                            <div class="ui grid">
                                <!--11+5-->
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <!--小头像-->
                                            <img src="http://s1.wailian.download/2020/04/23/touxiang.jpg" th:src="@{${blog.user.avatar}}" alt=""
                                                 class="ui avatar image">
                                            <div class="content"><a href="#" class="header" th:text="${blog.user.nickname}">黄成杭</a></div>
                                        </div>
                                        <div class="item"><!--更新日期-->
                                            <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2020-4-18</span>
                                        </div>
                                        <div class="item"><!--浏览次数-->
                                            <i class="eye icon"></i><span th:text="${blog.views}">2000</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned five wide column"><!--分类-->
                                    <a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${blog.type.name}">架构</a>
                                </div>
                            </div>
                        </div>
                        <div class="ui five wide column"><!--首图-->
                            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                <img src="http://s1.wailian.download/2020/04/22/admin_login_success.jpg" th:src="@{${blog.firstPicture}}" alt="" class="ui rounded image">
                            </a>
                        </div>
                    </div>
                </div>

            </div>
            <!--footer分页-->
            <div class="ui bottom attached segment" th:if="${page.totalPages}>1">
                <div class="ui middle aligned two column grid">
                    <div class="column"><!--访问的是根目录的页面-->
                        <a href="#" th:href="@{/(page=${page.number}-1)}" th:unless="${page.first}" class="ui mini teal basic button">上一页</a>
                    </div>
                    <div class="right aligned column">
                        <a href="#" th:href="@{/(page=${page.number}+1)}" th:unless="${page.last}" class="ui mini teal basic button">下一页</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
<br>
<br>

<!--底部footer-->
<footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <!--grid会分成16份 3+3+3+7-->
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/mywechat.png" th:src="@{/images/mywechat.png}" class="ui rounded image" alt="" style="width: 130px">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事(User Story)</a>
                    <a href="#" class="item">用户故事(User Story)</a>
                    <a href="#" class="item">用户故事(User Story)</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">联系我</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">Email:hchdream@163.com</a>
                    <a href="#" class="item">QQ:1378709811</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">Blog</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">这是我的博客，会分享关于编程、写作、思考相关的内容，希望可以给大家带来一定的帮助...</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny">版权所有 Copyright 2019 - 2020 @ HCH Rights Reserved </p>
    </div>
</footer>


<!--thymeleaf 引入js-->
<!--/*/<th:block th:fragment="_fragments :: script">/*/-->
<!--引入jquery-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<!--引入js-->
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
<!--/*/</th:block>/*/-->

<script>
    //手机屏幕模式下，隐藏顶部菜单，并产生一个收拉按钮
    $(".menu.toggle").click(function () {
        $(".m-item").toggleClass("m-mobile-hide");
    });

</script>

</body>
</html>